//
//  HJHomeDetailListCell.m
//  Sneakers
//
//  Created by 胡光健 on 2017/9/21.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "HJHomeDetailListCell.h"
#import "HJHomeModel.h"


@implementation HJHomeDetailListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.skipImage.hidden = YES;
//    self.imageW.constant = 0.001;
}


-(void)skipImageWithIndex:(NSInteger)index {
    if (index==10) {
        self.skipImage.hidden = YES;
    }else {
        self.skipImage.hidden = NO;
    }
    
}

-(void)setModel:(HJHomeDetailModel *)model {
    
    _model = model;
    
    self.codeLabel.text = model.shoes_size;
    if (self.index==10) {
        self.moneyLabel.text = [NSString stringWithFormat:@"￥%@",model.pay_reality];
    }else {
        self.moneyLabel.text = [NSString stringWithFormat:@"￥%@",model.shoes_cost];
    }
    self.timeLabel.text = [CommonTools getTimeStrBytimeSt:model.created_at];
}

@end
